<?php
/**.
 * User: Porlock
 * Create_Date: 2018/3/26
 * Time: 10:50
 * Update_Date: 2018/3/26
 * use: connect to database
 */
$dbh = new PDO(DB_DSN, DB_USER, DB_PASSWD);
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
?>